import request from '@/utils/request'

export function creatApplication(data) {
  return request({
    url: '/juanbusiness/app/add',
    method: 'post',
    data
  })
}

export function findApplication(data) {
  return request({
    url: '/juanbusiness/app/findPage',
    method: 'get',
    params: data
  })
}

export function findListApplication() {
  return request({
    url: '/juanbusiness/app/findList',
    method: 'get'
  })
}

export function updateApplication(data) {
  return request({
    url: '/juanbusiness/app/edit',
    method: 'put',
    data
  })
}

export function releaseApplication(data) {
    return request({
      url: '/juanbusiness/app/enable',
      method: 'put',
      data
    })
  }

export function delApplication(id) {
  return request({
    url: '/juanbusiness/app/del',
    method: 'delete',
    params: {id: id}
  })
}
